const mongoose = require('mongoose');
//创建文档的结构
let CarSchema = new mongoose.Schema({
  brand: String,
  price: Number,
  type: String
});

//创建模型对象   模型对象可以完成文档的增删改查操作  create   updateOne   remove   find
let CarModel = mongoose.model('cars', CarSchema);

//暴露
module.exports = CarModel;